package com.naiking.base
{
	import flash.geom.Point;
	/**
	 * 由2个点构成的矩形
	 * @author Naiking
	 * 
	 */	
	public class NRectangleTowPoint extends NLine
	{
		private var _w:Number;
		private var _h:Number;
		public function NRectangleTowPoint(p0:Point, p1:Point)
		{
			super(p0, p1);
			_w=(p1.x-p0.x)*_aX;
			_h=(p1.y-p0.y)*_aY;
		}
		public function get height():Number
		{
			return _h;
		}
		public function get width():Number
		{
			return _w;
		}
	}
}